import request from "@/utils/request";

/**
 * 获取仓库列表
 */
export const ListPage = props => {
  return request({
    url: "/mall/tenant/merchant/warehouse/listPage",
    method: "post",
    data: props
  });
};
/**
 * 新增仓库
 */
export const createWarehouse = props => {
  return request({
    url: "/mall/tenant/merchant/warehouse/createWarehouse",
    method: "post",
    data: props
  });
};
/**
 * 修改仓库
 */
export const updateWarehouse = props => {
  return request({
    url: "/mall/tenant/merchant/warehouse/updateWarehouse",
    method: "post",
    data: props
  });
};
/**
 * 仓库停用、启用
 */
export const updateStatus = props => {
  return request({
    url: "/mall/tenant/merchant/warehouse/updateStatus",
    method: "post",
    data: props
  });
};
